package com.ljf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ljf.dto.QueryGoodsCategory;
import com.ljf.entity.GoodsCategory;

import java.util.List;
import java.util.Map;

public interface GoodsCategoryService extends IService<GoodsCategory> {
    /**
     * 保存商品分类信息
     * @param category
     */
    void saveGoodsCategory(GoodsCategory category);

    void updateGoodsCategory(GoodsCategory category);

    void deactivate(Long cid);

    List<Map<String, Object>> getNormalCategoryAll();

    Page<GoodsCategory> queryPageByQo(QueryGoodsCategory qo);
}
